<?php


class Involved_MessageModel extends BaseModel
{

    protected $table = 'message';


    public function MessageCount($user_id)
    {
        return DB::table($this->table)
            ->where(['user_id'=>$user_id,'status'=>2])
            ->count();

    }
}